/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-4-13 下午11:13 Created by dwzhang
 */
package com.jade.framework.base.lang;

/**
 * 带有状态码的处理异常。
 *
 * @author dwzhang
 * @version 1.0 13-4-13 下午11:13
 */
public class StatusException
        extends ArgumentException
{
    protected String statusCode;

    public StatusException(String statusCode, String message)
    {
        super(message);
        this.statusCode = statusCode;
    }

    public StatusException(String statusCode, Throwable cause, Object... args)
    {
        super(null, cause, args);
        this.statusCode = statusCode;
    }

    public StatusException(String statusCode, String message, Throwable cause, Object... args)
    {
        super(message, cause, args);
        this.statusCode = statusCode;
    }

    public String getStatusCode()
    {
        return statusCode;
    }
}
